This script will be a part of []baz▀ot[] v2.╪ made by Ronny 1996 (C)
The Current script was made by baz`oo`ka and Hexadec
Add more txt files and add more things to the txt files if you wish...
All you need to do is to add the folowing in to the indicated section of tools
Aliases:
/hang {
unset %used
set %dir $r(1,4)
set %t 0
if (%dir = 1) { %quiz = movies.txt | %show = Movies }
if (%dir = 2) { %quiz = count.txt | %show = Countries }
if (%dir = 3) { %quiz = food.txt | %show = Food }
if (%dir = 4) { %quiz = music.txt | %show = Music }
msg %chan +----+----+ [HangDude] +----+----+ | msg %chan The Subject is ╗ $+ %show $+ ½ | msg %chan type ~letter guess to guess a letter , type ~word guess to guess the word and to see what letters that were guessed and in the word type ~show
set %subdir $read $mircdir [ $+ [ %quiz ] ]
set %long $str($len(%subdir),-)
msg %chan Current word has $len(%subdir) Characters in it: %long
enable #hang
echo 4 the Current word is: %subdir
halt
}
done {
msg %chan +----+----+ [HangDude] +----+-----+
msg %chan Game Disabled, The Dude Was Saved.
msg %chan º╗í½º []bazBot[] º╗í½º
msg %t %used | disable #hang
}
Remote Events:
400:on text:!hang:#:/set %chan $chan | /hang
400:on text:!save:#:/done
#hang start
1:on text:~letter*:#: {
if (($asc($parm2) < 65) || ($asc($parm2) > 132)) { msg %chan Sorry $nick But i Dont Recognize That Character. | halt }
if ($parm2 == $null) { msg %chan No Character specified $nick !! | halt }
if ($len($parm2) > 1) { msg %chan Invalid format ╗ $+ $upper($parm2) $+ ½ !! | halt }
if ($parm2 isin %used) { msg %chan ╗ $+ $parm2 $+ ½ has already been used! | msg %chan Character(s) used: $upper(%used) | halt }
if (- isin %long) { msg %chan Go Go $nick $+ !! ╗ $+ $upper($parm2) $+ ½ is in the word!! | msg %chan %long | msg %chan Character(s) used: $upper(%used) }
else { msg %chan Go Go $nick $+ !! ╗ $+ $upper($parm2) $+ ½ is in the word!! | msg %chan the word is: %subdir | msg %chan All Characters were guesst Game over º╗í½º []bazBot[] º╗í½º | disable #hang | unset %t }
halt
}
inc %t
if (%t = 7) { msg %chan umm sorry folx!!! you lost!! the poor guy was hanged!! o-<-< (Doh!) | msg %chan the word was: %subdir | msg %chan Game Over º╗í½º []bazBot[] º╗í½º | disable #hang | unset %t | halt }
if (%t == 6) { msg $chan Come on people!!! Think!! one more error and you lose!! $read -l [ $+ [ %t ] ] $mircdir $+ hang.txt | msg $chan Characters used: $upper(%used) }
if ($parm2 == $null) { msg %chan No word specified $nick !! | halt }
if ($parm2* == %subdir) { goto right }
else { goto wrong }
:right
msg %chan Thats Right $nick $+ !!!!! $parm2 is the right word!! | msg %chan Game Over º╗í½º []bazBot[] º╗í½º | disable #hang | unset %t | halt
halt
:wrong
inc %t 1
if (%t == 7) { msg %chan umm sorry folx!!! you lost!! the poor guy was hanged!! o-<-< (Doh!) | msg %chan the word was: %subdir | msg %chan Game is Over º╗í½º []bazBot[] º╗í½º | /disable #hang | unset %t | halt }